package com.cy.pj.common.web;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobaExceptionHandler {

    @ExceptionHandler
    public String doHandleArithmeticException(ArithmeticException e){
        return "the exception msg is "+e.getMessage();

    }
}
